<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>esm的web应用</title>
</head>
<body>
    <script src="./demo.js" type="module"></script>
    <script type="module">
        import obj from "./demo.js";
        console.log(obj.name);
    </script>
</body>
</html>